package com.rankeiot.platform;

import com.rankeiot.core.anno.Menu;
import com.rankeiot.core.anno.Permission;

/**
 * 系统菜单定义
 */
@SuppressWarnings("AlibabaConstantFieldShouldBeUpperCase")
@Menu(value = "系统管理",en = "System", icon = "icon-cog", id = PlatformMenu.ID,order = 996)
public interface PlatformMenu {


    String ID = "platform";

    @Menu(value = "用户管理",en = "Users", path = "platform/user.vue", icon = "h-icon-users",order=3)
    String USER = ID + ".user";

    //增删改
    @Permission(value = "新增",en = "Add", parent = USER)
    String USER_ADD = USER + ".add";
    @Permission(value = "修改",en = "Edit", parent = USER)
    String USER_EDIT = USER + ".edit";
    @Permission(value = "删除",en = "Delete", parent = USER)
    String USER_DELETE = USER + ".delete";

    @Menu(value = "系统信息",en = "SystemInfo", path = "platform/system.vue", icon = "jeicon-system-management", order = -5)
    String CONSOLE = ID + ".console";
    //
    @Menu(value = "组织机构",en = "Departments", path = "platform/branch.vue", icon = "icon-layers", order = 1)
    String BRANCH = ID + ".branch";

    @Menu(value = "角色管理",en = "Roles", path = "platform/role.vue", icon = "icon-flag",order=2)
    String ROLE = ID + ".role";

    @Menu(value = "字典管理",en = "Dictionaries", path = "platform/dictionary.vue", icon = "icon-book",order=4)
    String DICTIONARY = ID + ".dictionary";

    @Menu(value = "编码规则",en = "Coding Rules", path = "platform/codes.vue", icon = "icon-paper-clip",order=4)
    String CODES = ID + ".codes";

    @Menu(value = "配置项管理",en = "Config Items", path = "platform/configs.vue", icon = "icon-paper-clip",order=5)
    String CONFIG = ID + ".config";

    @Menu(value = "用户日志",en = "User Logs", path = "platform/userLogs.vue", icon = "icon-eye",order=6)
    String USER_LOG = ID + ".user_log";
    //
    @Menu(value = "慢SQL日志",en = "Slow SQL Logs", path = "platform/slowsql.vue", icon = "icon-loader",order=7)
    String SLOWSQL_LOG = ID + ".slow_sql";

    @Menu(value = "定时任务",en = "Tasks", path = "platform/jobs.vue", icon = "h-icon-task",order=8)
    String JOBS = ID + ".jobs";

    @Menu(value = "多级字典",en = "multi Dictionary", path = "platform/multiDictionary.vue", icon = "jeicon-dictionary",order = 9)
    String MULTIDICTIONARY = ID + ".multiDictionary";

    // 多级字典增删改权限
    @Permission(value = "新增",en = "Add", parent = MULTIDICTIONARY)
    String MULTIDICTIONARY_ADD = MULTIDICTIONARY + ".add";
    @Permission(value = "修改",en = "Edit", parent = MULTIDICTIONARY)
    String MULTIDICTIONARY_EDIT = MULTIDICTIONARY + ".edit";
    @Permission(value = "删除",en = "Delete", parent = MULTIDICTIONARY)
    String MULTIDICTIONARY_DELETE = MULTIDICTIONARY + ".delete";

    @Menu(value = "菜单管理",en = "Menu", path = "platform/menu.vue", icon = "h-icon-menu",order = 10)
    String MENU = ID + ".menu";

    // 系统菜单增删改权限
    @Permission(value = "新增",en = "Add", parent = MENU)
    String MENU_ADD = MENU + ".add";
    @Permission(value = "修改",en = "Edit", parent = MENU)
    String MENU_EDIT = MENU + ".edit";
    @Permission(value = "删除",en = "Delete", parent = MENU)
    String MENU_DELETE = MENU + ".delete";

   // @Menu(value = "应用管理", path = "platform/plugins.vue", icon = "jeicon-web-switch",order = 11)
    String PLUGINS = ID+".plugin";

    @Menu(value = "数据看板",en = "Data Board", path = "platform/dataease.vue", icon = "jeicon-road-show",order = 12)
    String DATAEASE=ID+".dataease";
    @Permission(value = "控制面板",en = "Control Panel", parent = DATAEASE)
    String DATAEASE_CONTROL = DATAEASE + ".control";
}
